﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Smled.States
{
    class BrushState : BaseState
    {
        public BrushState(MapView mapv) : base(mapv) { }

        public override void MapView_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            if (e.Button == mv.PrimaryButton)
                mv.PaintTile();
            else if (e.Button == mv.SecondaryButton)
                mv.Chooser.NulToggle();
        }

        public override void MapView_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            if (e.Button == mv.PrimaryButton)
                mv.PaintTile();
        }
    }
}
